package com.lyb.services;

import com.github.pagehelper.PageInfo;
import com.lyb.Dto.UserDto;
import com.lyb.pojo.Role;
import com.lyb.pojo.User;
import com.lyb.pojo.UserRole;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    User getUserByName(String name);
    Boolean register(UserDto user);
    PageInfo<User> queryPage(Integer pageSize, Integer pageNum);
    Boolean update(User user);
    Boolean del(Long id);
    Boolean add(User user,Long roleId);
    UserRole findByUserId(Long id);
}
